package one.stand.fallback;

import one.stand.feign.UserFeign;
import one.stand.model.ResultModel;
import one.stand.request.BusinessCardRequest;
import one.stand.request.ConsultRecordRequest;
import one.stand.response.BusinessCardResponse;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author: QIK
 * @CreateDate: 2019/4/9 18:42
 */
@Component
public class UserFallBack implements UserFeign {
    @Override
    public ResultModel<List<BusinessCardResponse>> getUserInfo(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel unreadMessage(Integer sendUserId, Integer ReceiveUserId, String text, Integer type) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel addConsultRecord(ConsultRecordRequest request) {
        return ResultModel.faultTolerant();
    }
}
